{% extends "base_layout.html" %}

{% block title %}{{action_title}}{% endblock title%}

{% block content %}
<div class="box">
  {% if message %}
  {{message}}
  {% endif %}
  {% if error_message %}
  {{error_message}}
  {% endif %}
  <form action="{{url_for('edit_project_action')}}" method="post" id="project">
    <fieldset>
      <legend>Project: {{project.name}}</legend>
      <div>
        <label for="slug_name" class="required">Short Name:</label>
        <span id="slug_name">{{project.slug_name}}</span>
      </div>
      <div>
        <label for="name" class="required">Display Name:</label>
        <span id="slug_name">{{project.name}}</span>
      </div>
      <div>
        <label for="created">Since:</label>
        <span id="created">{{project.created | verbose_datetime_format}}</span>
      </div>
      <div>
        <label for="modified">Last modified:</label>
        <span id="modified">{{project.modified | verbose_datetime_format}}</span>
      </div>
      <input type="hidden" name="key" value="{{project.key}}">
      <div class="submit">
        <label></label>
        <input type="submit" name="_action_edit" value="Edit" class="default" />
      </div>
    </fieldset>
  </form>
</div>
{% endblock content%}
